﻿@{
    Layout = null;
}
@model ElingOA6_Admin_DSJCJ.Model.Entity
<!DOCTYPE html>
<html>
@Html.Partial("LoadPanelPartial")
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <title>Index</title>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PageCommon.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Fckeditor/fckeditor.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
      <script src="@Url.Content("~/Scripts/CJL.0.1.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/ImagePreview.js", true)" type="text/javascript"></script>
         <script>
             if (top.boardtop) {
                 top.boardtop.head_txt.innerText = "系统属性";
             }
    </script>

    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)

    <script>
        $(document).ready(function () {
            var message = $('#hidMessage').val();
            if (message != "") {
                alert(message);
            }

            var oFCKeditor = new FCKeditor('FCopyRight');
            oFCKeditor.BasePath = rootPath + "/fckeditor/";
            oFCKeditor.ToolbarSet = "Video";
            oFCKeditor.ReplaceTextarea();
        });
        function OA_SSOUse_CheckedChanged(s, e) {
            var clientOA_SSOUseObj = ASPxClientCheckBox.Cast(s);
            var clientOA_SSOLoginAddressObj = ASPxClientTextBox.Cast("OA_SSOLoginAddress");
            if (clientOA_SSOUseObj.GetChecked()) {
                clientOA_SSOLoginAddressObj.SetEnabled(true);
            }
            else {
                clientOA_SSOLoginAddressObj.SetEnabled(false);
                clientOA_SSOLoginAddressObj.SetText("");
            }
        }
        function save() {
            lpModal.Show();
            ASPxClientTextBox.Cast("FEntityNo").SetEnabled(true);

            form1.submit();
        }
        function cancel() {
            window.top.location.href = rootPath + "/";
        }

    </script>

</head>
<body>
    @using (Html.BeginForm("Save", "WebsiteProp", FormMethod.Post, new { id = "form1", @class = "edit_form" }))
    {
        @Html.DevExpress().PageControl(
    settings =>
    {
        settings.Name = "tabCtlGroup";
        settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
        settings.Height = System.Web.UI.WebControls.Unit.Percentage(100);
        settings.Styles.Content.Border.BorderWidth = 0;
        settings.TabPages.Add("基本信息").SetContent(() =>
        {
            Html.RenderPartial("BaseInfoPartial");
        });
        settings.TabPages.Add("权属声明").SetContent(() =>
        {
            Html.RenderPartial("CopyRightPartial");
        });
        settings.TabPages.Add("SMTP服务器").SetContent(() =>
        {
            Html.RenderPartial("SMTPServerPartial");
        });
        settings.TabPages.Add("系统参数").SetContent(() =>
        {
            Html.RenderPartial("SystemParamsPartial");
        });

    }).GetHtml()
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="right" style="border-bottom: 1px solid #577F9E;">
                    @Html.DevExpress().Button(settings =>
            {
                settings.Name = "btnOK";
                settings.Text = "确定";
                settings.ClientSideEvents.Click = "function(s,e){save()}";
                settings.Style.Add(HtmlTextWriterStyle.PaddingRight, "5px");
                settings.Images.Image.Url = Url.Content("~/Content/ControlImages/ok.png");
                settings.CausesValidation = false;
            }).GetHtml()
                </td>
                <td align="left" style="border-bottom: 1px solid #577F9E;">
                    @Html.DevExpress().Button(settings =>
            {
                settings.Name = "btnCancel";
                settings.Text = "取消";
                settings.ClientSideEvents.Click = "function(s,e){cancel()}";
                settings.Images.Image.Url = Url.Content("~/Content/ControlImages/no.png");
                settings.CausesValidation = false;
            }).GetHtml()
                </td>
            </tr>
        </table>
        @Html.Hidden("hidMessage", ViewData["message"])
        @Html.Hidden("FWaterMarkSvrFileName", Model.FWaterMarkSvrFileName)
         
    }

    <script>
        lp.Hide();
    </script>

</body>
</html>
